<?php


namespace Agoni\DaDa;
use Agoni\DaDa\Api;

class Test extends ApiRequest
{
    use Api;
    /**
     * 接单(仅在测试环境供调试使用)
     * @return bool
     */
    public function acceptOrder($data)
    {
        return $this->request($this->API_ACCEPTORDER,$data);
    }

    /**
     * 完成取货(仅在测试环境供调试使用)
     * @return bool
     */
    public function fetchOrder($data)
    {
        return $this->request($this->API_FETCHORDER,$data);
    }

    /**
     * 完成订单(仅在测试环境供调试使用)
     * @return bool
     */
    public function finishOrder($data)
    {
        return $this->request($this->API_FINISHORDER,$data);
    }

    /**
     * 取消订单(仅在测试环境供调试使用)
     * @return bool
     */
    public function cancelOrder($data)
    {
        return $this->request($this->API_CANCELORDER,$data);
    }

    /**
     * 订单过期(仅在测试环境供调试使用)
     * @return bool
     */
    public function expireOrder($data)
    {
        return $this->request($this->API_EXPIREORDER,$data);
    }

    /**
     * 异常订单返回中
     * @param $data
     */
    public function abnormalBack($data){
        return $this->request($this->API_ABNORMALBACK,$data);
    }
}